package com.gzhryc.shared_device.oem.code.member.dao.db;

import java.io.Serializable;
import java.util.Date;

import com.gzhryc.jdbc.annotaion.Column;
import com.gzhryc.jdbc.annotaion.NumberBranchTable;
import com.gzhryc.jdbc.annotaion.PrimaryKey;
import com.gzhryc.jdbc.annotaion.Table;

@NumberBranchTable(keyFieldName = "memberId")
@Table(name = "member_agreement")
public class MemberAgreement implements Serializable {

	private static final long serialVersionUID = 1L;

	@PrimaryKey
    @Column(name = "member_id", notNull = true, note = "会员ID")
    protected Long memberId;
	
	@PrimaryKey
    @Column(name = "agreement_code", notNull = true, note = "协议Code")
    protected String agreementCode;
	
	@PrimaryKey
    @Column(name = "agreement_app_id", notNull = true, note = "应用ID")
    protected String agreementAppId;
	
	@Column(notNull = true, defVal = "1", note = "协议状态")
    protected Integer state;
	
    @Column(name = "signing_date", note = "签署时间")
    protected Date signingDate;
    
    @Column(name = "refuse_date", note = "拒绝时间")
    protected Date refuseDate;
	
	@Column(name = "create_date")
    protected Date createDate;

	public Long getMemberId() {
		return memberId;
	}

	public void setMemberId(Long memberId) {
		this.memberId = memberId;
	}

	public String getAgreementCode() {
		return agreementCode;
	}

	public void setAgreementCode(String agreementCode) {
		this.agreementCode = agreementCode;
	}

	public String getAgreementAppId() {
		return agreementAppId;
	}

	public void setAgreementAppId(String agreementAppId) {
		this.agreementAppId = agreementAppId;
	}

	public Integer getState() {
		return state;
	}

	public void setState(Integer state) {
		this.state = state;
	}

	public Date getSigningDate() {
		return signingDate;
	}

	public void setSigningDate(Date signingDate) {
		this.signingDate = signingDate;
	}

	public Date getRefuseDate() {
		return refuseDate;
	}

	public void setRefuseDate(Date refuseDate) {
		this.refuseDate = refuseDate;
	}

	public Date getCreateDate() {
		return createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}
}
